﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <xsl:output method="xml" indent="yes"/>

    <xsl:template match="/">
      <Grid >
        <StackPanel>
          <xsl:apply-templates />
        </StackPanel>
      </Grid>
    </xsl:template>
  <xsl:template match="p">
    <TextBlock TextWrapping="Wrap">
      <xsl:apply-templates />
    </TextBlock>
  </xsl:template>
  <xsl:template match="quote">
    <TextBlock Foreground="Blue" TextWrapping="Wrap">
      <xsl:apply-templates />
    </TextBlock>
  </xsl:template>
  <xsl:template match="h1">
    <TextBlock FontSize="25" FontWeight="Bold" TextWrapping="Wrap">
      <xsl:apply-templates />
    </TextBlock>
  </xsl:template>
  <xsl:template match="h2">
    <TextBlock FontSize="20" FontWeight="Bold" TextWrapping="Wrap">
      <xsl:apply-templates />
    </TextBlock>
  </xsl:template>
  <xsl:template match="h3">
    <TextBlock FontSize="18" FontWeight="Bold" TextWrapping="Wrap">
      <xsl:apply-templates />
    </TextBlock>
  </xsl:template>
  <xsl:template match="h4">
    <TextBlock FontSize="15" FontWeight="Bold" TextWrapping="Wrap">
      <xsl:apply-templates />
    </TextBlock>
  </xsl:template>
  <xsl:template match="h5">
    <TextBlock FontSize="14" FontWeight="Bold" TextWrapping="Wrap">
      <xsl:apply-templates />
    </TextBlock>
  </xsl:template>
  <xsl:template match="h6">
    <TextBlock FontSize="13" FontWeight="Bold" TextWrapping="Wrap">
      <xsl:apply-templates />
    </TextBlock>
  </xsl:template>
  
  
  <xsl:template match="/article/text()">
    <TextBlock TextWrapping="Wrap">
      <xsl:value-of select="."/>
    </TextBlock>
  </xsl:template>
</xsl:stylesheet>
